package com.wangkang.eduservice;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;


@SpringBootApplication
//@ComponentScan将其它模块中的文件扫描进来，
//前提是被扫描的其他模块中的文件所在的包名与本模块中的包名一致。
@ComponentScan(basePackages = {"com.wangkang"})
@EnableDiscoveryClient//nacos注册
@EnableFeignClients//service-edu调用service-vod，该注解加在调用端。
public class EduApplication {
    public static void main(String[] args) {
        SpringApplication.run(EduApplication.class,args);
    }

}